.TH std::make_error_code(std::errc) 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::make_error_code(std::errc) \- std::make_error_code(std::errc)

.SH Synopsis
   Defined in header <system_error>
   std::error_code make_error_code( std::errc e ) noexcept;  \fI(since C++11)\fP

   Creates error code value for errc enum e.

   Equivalent to std::error_code(static_cast<int>(e), std::generic_category())

.SH Parameters

   e - error code enum to create error code for

.SH Return value

   Error code corresponding to e.

.SH See also

   make_error_code(std::io_errc)     constructs an iostream error code
   \fI(C++11)\fP                           \fI(function)\fP
   make_error_code(std::future_errc) constructs a future error code
   \fI(C++11)\fP                           \fI(function)\fP
